<html>
<body>
<form action="uploadAction" method="post" enctype="multipart/form-data" onsubmit="return alert(this)">
<input type="file" name="file"/>
<input type="submit" value="Upload"/>
<div id="valid_msg"/>
</form>
</body>
</html>